import numpy as np

sample_list = [1,1,5,5,3,4]

x= np.ptp(sample_list)
print(x)

y = max(sample_list) - min(sample_list)
print(y)

